<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="trader.configuration.html">« 运行时配置</a></li>
      <li style="float: right;"><a href="ref.trader.html">Trader 函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.trader.html">Trader</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="trader.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <p class="para">
  <dl>
   
    <dt id="constant.trader-ma-type-sma">
     <strong><code>TRADER_MA_TYPE_SMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-ma-type-ema">
     <strong><code>TRADER_MA_TYPE_EMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-ma-type-wma">
     <strong><code>TRADER_MA_TYPE_WMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-ma-type-dema">
     <strong><code>TRADER_MA_TYPE_DEMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-ma-type-tema">
     <strong><code>TRADER_MA_TYPE_TEMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-ma-type-trima">
     <strong><code>TRADER_MA_TYPE_TRIMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-ma-type-kama">
     <strong><code>TRADER_MA_TYPE_KAMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-ma-type-mama">
     <strong><code>TRADER_MA_TYPE_MAMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-ma-type-t3">
     <strong><code>TRADER_MA_TYPE_T3</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-real-min">
     <strong><code>TRADER_REAL_MIN</code></strong>
     (<span class="type">float</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-real-max">
     <strong><code>TRADER_REAL_MAX</code></strong>
     (<span class="type">float</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-adx">
     <strong><code>TRADER_FUNC_UNST_ADX</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-adxr">
     <strong><code>TRADER_FUNC_UNST_ADXR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-atr">
     <strong><code>TRADER_FUNC_UNST_ATR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-cmo">
     <strong><code>TRADER_FUNC_UNST_CMO</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-dx">
     <strong><code>TRADER_FUNC_UNST_DX</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-ema">
     <strong><code>TRADER_FUNC_UNST_EMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-ht-dcperiod">
     <strong><code>TRADER_FUNC_UNST_HT_DCPERIOD</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-ht-dcphase">
     <strong><code>TRADER_FUNC_UNST_HT_DCPHASE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-ht-phasor">
     <strong><code>TRADER_FUNC_UNST_HT_PHASOR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-ht-sine">
     <strong><code>TRADER_FUNC_UNST_HT_SINE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-ht-trendline">
     <strong><code>TRADER_FUNC_UNST_HT_TRENDLINE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-ht-trendmode">
     <strong><code>TRADER_FUNC_UNST_HT_TRENDMODE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-kama">
     <strong><code>TRADER_FUNC_UNST_KAMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-mama">
     <strong><code>TRADER_FUNC_UNST_MAMA</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-mfi">
     <strong><code>TRADER_FUNC_UNST_MFI</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-minus-di">
     <strong><code>TRADER_FUNC_UNST_MINUS_DI</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-minus-dm">
     <strong><code>TRADER_FUNC_UNST_MINUS_DM</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-natr">
     <strong><code>TRADER_FUNC_UNST_NATR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-plus-di">
     <strong><code>TRADER_FUNC_UNST_PLUS_DI</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-plus-dm">
     <strong><code>TRADER_FUNC_UNST_PLUS_DM</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-rsi">
     <strong><code>TRADER_FUNC_UNST_RSI</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-stochrsi">
     <strong><code>TRADER_FUNC_UNST_STOCHRSI</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-t3">
     <strong><code>TRADER_FUNC_UNST_T3</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-all">
     <strong><code>TRADER_FUNC_UNST_ALL</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-func-unst-none">
     <strong><code>TRADER_FUNC_UNST_NONE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-compatibility-default">
     <strong><code>TRADER_COMPATIBILITY_DEFAULT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-compatibility-metastock">
     <strong><code>TRADER_COMPATIBILITY_METASTOCK</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-success">
     <strong><code>TRADER_ERR_SUCCESS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-lib-not-initialize">
     <strong><code>TRADER_ERR_LIB_NOT_INITIALIZE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-bad-param">
     <strong><code>TRADER_ERR_BAD_PARAM</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-alloc-err">
     <strong><code>TRADER_ERR_ALLOC_ERR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-group-not-found">
     <strong><code>TRADER_ERR_GROUP_NOT_FOUND</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-func-not-found">
     <strong><code>TRADER_ERR_FUNC_NOT_FOUND</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-invalid-handle">
     <strong><code>TRADER_ERR_INVALID_HANDLE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-invalid-param-holder">
     <strong><code>TRADER_ERR_INVALID_PARAM_HOLDER</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-invalid-param-holder-type">
     <strong><code>TRADER_ERR_INVALID_PARAM_HOLDER_TYPE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-invalid-param-function">
     <strong><code>TRADER_ERR_INVALID_PARAM_FUNCTION</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-input-not-all-initialize">
     <strong><code>TRADER_ERR_INPUT_NOT_ALL_INITIALIZE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-output-not-all-initialize">
     <strong><code>TRADER_ERR_OUTPUT_NOT_ALL_INITIALIZE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-out-of-range-start-index">
     <strong><code>TRADER_ERR_OUT_OF_RANGE_START_INDEX</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-out-of-range-end-index">
     <strong><code>TRADER_ERR_OUT_OF_RANGE_END_INDEX</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-invalid-list-type">
     <strong><code>TRADER_ERR_INVALID_LIST_TYPE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-bad-object">
     <strong><code>TRADER_ERR_BAD_OBJECT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-not-supported">
     <strong><code>TRADER_ERR_NOT_SUPPORTED</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-internal-error">
     <strong><code>TRADER_ERR_INTERNAL_ERROR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.trader-err-unknown-error">
     <strong><code>TRADER_ERR_UNKNOWN_ERROR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
  </dl>

 </p>
</div>
</div></div></body></html>